this.BX=this.BX||{};this.BX.UI=this.BX.UI||{};(function(e,a){"use strict";var n;var t=function(){function e(n){babelHelpers.classCallCheck(this,e);this.manualCode=a.Type.isString(n.manualCode)?n.manualCode:"";this.width=a.Type.isNumber(n.width)?n.width:1e3;this.urlParams=a.Type.isPlainObject(n.urlParams)?n.urlParams:{};this.analyticsLabel=a.Type.isPlainObject(n.analyticsLabel)?n.analyticsLabel:{};this.sidePanelId="manual-side-panel-"+this.manualCode}babelHelpers.createClass(e,[{key:"open",value:function e(){var a=this;if(this.isOpen()){return}BX.SidePanel.Instance.open(this.sidePanelId,{contentCallback:function e(){return a.createFrame()},width:this.width})}},{key:"createFrame",value:function e(){var n=this;return new Promise((function(e,t){a.ajax.runAction("ui.manual.getInitParams",{data:{manualCode:n.manualCode,urlParams:n.urlParams},analyticsLabel:n.analyticsLabel}).then((function(a){e(n.renderFrame(a.data.url))}))}))}},{key:"renderFrame",value:function e(t){var i="position: absolute; left: 0; top: 0; padding: 0;"+" border: none; margin: 0; width: 100%; height: 100%;";return a.Tag.render(n||(n=babelHelpers.taggedTemplateLiteral(['<iframe style="','" src="','"></iframe>'])),i,t)}},{key:"getSidePanel",value:function e(){return BX.SidePanel.Instance.getSlider(this.sidePanelId)}},{key:"isOpen",value:function e(){return this.getSidePanel()&&this.getSidePanel().isOpen()}}],[{key:"show",value:function a(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var l=new e({manualCode:n,urlParams:t,analyticsLabel:i});l.open()}}]);return e}();e.Manual=t})(this.BX.UI.Manual=this.BX.UI.Manual||{},BX);
//# sourceMappingURL=manual.bundle.map.js